package org.hank.compose_yyzs.db

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import org.hank.compose_yyzs.bean.ProjectTreeNode
import org.hank.compose_yyzs.db.converters.FileTypeConverter
import org.hank.compose_yyzs.bean.UnUploadInfo
import org.hank.compose_yyzs.bean.WifiBean
import org.hank.compose_yyzs.db.converters.ProjectTreeTypeConverter
import org.hank.compose_yyzs.db.dao.FileDao
import org.hank.compose_yyzs.db.dao.ProjectDao
import org.hank.compose_yyzs.db.dao.WifiDao

/**
 *@auth: Hank
 *邮箱: cs16xiaoc1@163.com
 *创建时间: 2023/3/11 10:25
 *描述:
 */
@Database(entities = [WifiBean::class, UnUploadInfo::class,ProjectTreeNode::class], version = 1, exportSchema = false)
@TypeConverters(FileTypeConverter::class,ProjectTreeTypeConverter::class)
abstract class MyDatabase : RoomDatabase() {
    abstract fun wifiDao(): WifiDao
    abstract fun fileDao(): FileDao
    abstract fun projectDao() : ProjectDao
    companion object {
        val DATABASE_NAME = "YYZS_DB"
    }
}